using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Reflection;
using System.Drawing.Drawing2D;

namespace Omniture.Studio
{
	public partial class SplashForm : Form
	{
		public SplashForm()
		{
			InitializeComponent();

			Assembly assembly = Assembly.GetExecutingAssembly();
			AssemblyCopyrightAttribute copyright = (AssemblyCopyrightAttribute)AssemblyCopyrightAttribute.GetCustomAttribute(assembly, typeof(AssemblyCopyrightAttribute));
			AssemblyDescriptionAttribute description = (AssemblyDescriptionAttribute)AssemblyDescriptionAttribute.GetCustomAttribute(assembly, typeof(AssemblyDescriptionAttribute));
			AssemblyCompanyAttribute company = (AssemblyCompanyAttribute)AssemblyCompanyAttribute.GetCustomAttribute(assembly, typeof(AssemblyCompanyAttribute));
			AssemblyTrademarkAttribute trademark = (AssemblyTrademarkAttribute)AssemblyTrademarkAttribute.GetCustomAttribute(assembly, typeof(AssemblyTrademarkAttribute));
			AssemblyProductAttribute product = (AssemblyProductAttribute)AssemblyProductAttribute.GetCustomAttribute(assembly, typeof(AssemblyProductAttribute));
			AssemblyTitleAttribute title = (AssemblyTitleAttribute)AssemblyTitleAttribute.GetCustomAttribute(assembly, typeof(AssemblyTitleAttribute));

			//Get the version information
			System.Version version = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version;
			string versionString = version.Major + "." + version.Minor + "." + version.Build + "." + version.Revision;

			lblVersion.Text = versionString;
			lblTrademark.Text = trademark.Trademark;
			lblDescription.Text = description.Description;

			System.Windows.Forms.Application.DoEvents();

		}

		private void timer1_Tick(object sender, System.EventArgs e)
		{
			this.Close();
		}

	}
}